package com.example.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.pojo.Hello;
import com.example.demo.service.UserService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(value="用户管理系统")
@RequestMapping("api")
public class TestApiController {
	
	
	@Autowired
	UserService userservice;
	
	@RequestMapping("testApi")
	@ApiOperation(value = "获取用户信息",notes = "获取所有用户信息 note")
	public List<Hello> testApi(){
		return userservice.allUser();
	}
	
	
	

}
